package com.day19.properties;

import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class PropertiesDemo03 {
    public static void main(String[] args) throws IOException {
        myLoad();

    }
    private static void myLoad() throws IOException {
        Properties prop = new Properties();
        FileReader fr = new FileReader("itheima.properties");
        prop.load(fr);
        fr.close();
        System.out.println(prop);
    }
    private static void myLoad2() throws IOException {
        Properties prop = new Properties();
        FileReader fr = new FileReader("itheima.properties");
        prop.load(fr);
        fr.close();
        System.out.println(prop);
    }
}
